package com.ruoyi.wechat.domain;

import java.util.ArrayList;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租赁订单对象 c_leaseorder
 * 
 * @author ruoyi
 * @date 2024-12-25
 */
public class CLeaseorder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 租赁订单ID */
    private String orderId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 营地ID */
    @Excel(name = "营地ID")
    private String campId;

    /** 营地名称 */
    @Excel(name = "营地名称")
    private String campName;

    /** 营地图片 */
    @ApiModelProperty(value = "营地图片")
    @Excel(name = "营地图片")
    private String imageUrl;

    /** 租赁时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租赁时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leaseOrderTime;

    /** 二维码 */
    @Excel(name = "二维码")
    private String qrCode;

    /** 商品总价 */
    @Excel(name = "商品价格")
    private Long totalPrice;

    /** 状态 0：正常 1：取消租赁 */
    @Excel(name = "状态 0：加入购物车 1：取消订单 2:提交订单 3: 已支付 4：已核销")
    private String state;

    private ArrayList<ProductLeaseOrder> cartList;

    private ArrayList<Product> productOrderList;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCampId() {
        return campId;
    }

    public void setCampId(String campId) {
        this.campId = campId;
    }

    public String getCampName() {
        return campName;
    }

    public void setCampName(String campName) {
        this.campName = campName;
    }

    public Date getLeaseOrderTime() {
        return leaseOrderTime;
    }

    public void setLeaseOrderTime(Date leaseOrderTime) {
        this.leaseOrderTime = leaseOrderTime;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public Long getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Long totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public ArrayList<ProductLeaseOrder> getCartList() {
        return cartList;
    }

    public void setCartList(ArrayList<ProductLeaseOrder> cartList) {
        this.cartList = cartList;
    }

    public ArrayList<Product> getProductOrderList() {
        return productOrderList;
    }

    public void setProductOrderList(ArrayList<Product> productOrderList) {
        this.productOrderList = productOrderList;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @Override
    public String toString() {
        return "CLeaseorder{" +
                "orderId='" + orderId + '\'' +
                ", userId='" + userId + '\'' +
                ", campId='" + campId + '\'' +
                ", campName='" + campName + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", leaseOrderTime=" + leaseOrderTime +
                ", qrcode='" + qrCode + '\'' +
                ", totalPrice=" + totalPrice +
                ", state='" + state + '\'' +
                ", cartList=" + cartList +
                ", productOrderList=" + productOrderList +
                '}';
    }
}
